	<header class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">地址管理</h1>
	</header>
	<div class="mui-content">
		<% for(address in customerAddresss){%>
		<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
			<li class="mui-table-view-cell">
					<div class="mui-table">
						<div class="mui-table-cell mui-col-xs-6">
							<h4>${address.contact!}</h4>
						</div>
						<div class="mui-table-cell mui-col-xs-6 mui-text-right">
							<h4>${address.mobileNo!}</h4>
						</div>
					</div>
							<font size="3">${address.address!}</font>
			</li>
			<li class="mui-table-view-cell">
				<div class="mui-table">
					<div class="mui-table-cell mui-col-xs-6">
						<div class="mui-input-row mui-radio mui-left">
							<input id="radio_${address.id!}" type="radio" name="radio" value="${address.isDefault!}">
							<script>
							var id=${address.id!};
							if($("#radio_"+id).val()=='Y'){
								$("#radio_"+id).attr("checked","checked");
							}
							</script>
							<label>设为默认地址</label>
						</div>
					</div>
					<div class="mui-table-cell mui-col-xs-6 mui-text-right">
						<span class="mui-icon mui-icon-trash" onclick="ajaxContent('/address/delete/${address.id!}')"></span>
						<span class="mui-icon mui-icon-compose" onclick="ajaxContent('/address/edit/a/${address.id!}'   )"></span>
					</div>
				</div>	
			</li>
		</ul>
		<% } %>
		<ul class="mui-table-view" style="margin-top: 10px;">
			<li class="mui-table-view-cell">
				<div class="mui-table">
					<div class="mui-table-cell mui-col-xs-10 mui-text-right">
						<button id="add" class="mui-btn mui-btn-danger mui-btn-block mui-btn-outlined" onclick="ajaxContent('/address/add/a')">添加新地址</button>
					</div>
				</div>
			</li>
		</ul>
	</div>
<script>
	mui.init({
		swipeBack: true //启用右滑关闭功能
	});
</script>
